<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSystemUserTokens extends \App\Utils\CreateMigration
{
    function columns(Blueprint $table)
    {
        $table->unsignedBigInteger('user_id')->default(0)->comment('用户ID');
        $table->string('token')->default('')->comment('登录token');
        $table->index(['user_id'], 'idx_user_id');
    }

    function tableInfo()
    {
        return ['system__user_tokens', '系统管理-用户Tokens'];
    }
}
